package com.jk.controller;

import com.jk.pojo.MechanismEntity;
import com.jk.service.MechanismService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName MechanismController
 * @Descripttion TODO状态
 * @Author DELL
 * @Date 2022/10/16 20:29
 * @Version 0.001
 */
@RestController
@RequestMapping("mechanism")
public class MechanismController {

    @Autowired
    private MechanismService mechanismService;

    /**
    * @Author: binzi
    * @Description:查询状态
    * @Date: 2022/10/16 20:31
    * @Return: java.util.List<com.jk.pojo.MechanismEntity>
    **/
    @RequestMapping("findMechanism")
    public List<MechanismEntity> findMechanism(){
        return mechanismService.findMechanism();
    }
}
